// 使用bind，手动绑定this的指向
var obj = { 
    count: 0, 
    cool: function coolFn() { 
    
    if (this.count < 1) { 
        setTimeout(function timer() { 
            this.count++; 
            console.log( "awesome?",this.count ); 
        }.bind(this), 100 ); 
    } 
} 
   }; 
    
   obj.cool(); 